﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ghy.Soft.Domain.Entities
{
    public class Admin
    {
        /// <summary>
        /// 管理员ID
        /// </summary>
        public virtual int AdminId { get; set; }
        /// <summary>
        /// 管理员真名
        /// </summary>
        public virtual String AdminName { get; set; }
        /// <summary>
        /// 管理员
        /// </summary>
        public virtual String Password { get; set; }
        /// <summary>
        /// 管理员密码
        /// </summary>
        public virtual String TrueName { get; set; }
        /// <summary>
        /// 管理员联系电话
        /// </summary>
        public virtual String Tellphone { get; set; }
        /// <summary>
        /// 管理员权限，共分为3级
        /// </summary>
        public virtual AdminPermission Permission { get; set; }
        /// <summary>
        /// 管理员状态
        /// </summary>
        public virtual AdminState State { get; set; }
    }



    public enum AdminState { Locked, Right }
    public enum AdminPermission{Writer,Editor,Manager}
}
